import { createApp } from 'vue';
import { createStore } from 'vuex';
import './style.css';
import App from './App.vue';
import router from './router';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';

const store = createStore({
  state() {
    return {
      iserver: {
        protocol: 'http',
        hostname: 'localhost',
        port: 8090,
      },
      map: undefined
    };
  },
});

const app = createApp(App);
app.use(store);
app.use(router);
app.use(ElementPlus);
app.mount('#app');